package factory;

/**
 * 123
 *
 * @author: 任福祥
 * * @create: 2024-02-22 09:23
 */
public class Factory {
    public static void main(String[] args) {
        //简单工厂模式
        Restaurant restaurant = Wait.getMean(Wait.MEAN_DUCK);
        assert restaurant != null;
        restaurant.cook();
    }
}